<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>列表管理</title>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="format-detection" content="telephone=no"/>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all" />
    <link rel="stylesheet" th:href="@{/css/style.css}" media="all" />
</head>

<body class="childrenBody">
<blockquote class="layui-elem-quote prize_search">
    <div class="layui-inline">
        <div class="layui-input-inline">
            <input type="text" value="" placeholder="请输入关键字" class="layui-input search_input" id="searchInput"/>
        </div>
        <a class="layui-btn search_btn" id="searchBtn">查询</a>
    </div>
    <div class="layui-inline">
        <a class="layui-btn layui-btn-normal prizeAdd_btn">添加</a>
    </div>
</blockquote>
<div class="layui-form prizes_list" id="prizes_list">
    <table class="layui-table">
       
        <thead>
        <tr>
            <th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"/></th>
             <td style="display:none">pId</td>
                        <td style="display:none">id</td>
                        <td>title</td>    
                        <td>pType</td>    
                        <td>covertCode</td>    
                        <td>winners</td>    
                        <td>mode</td>    
                        <td>direction</td>    
                        <td>createTime</td>    
                        <td>updateTime</td>    
                        <td>publishTime</td>    
                        <td>deadlineTime</td>    
                        <td>createPerson</td>    
                    <td>操作</td>
        </tr>
        </thead>
        <tbody class="prizes_content" id="prizeListTb">

        </tbody>
    </table>
</div>
<div id="pagination">
</div>


<script type="text/html" id="prizeList">
    {{if list != null}}
    {{each list as value i}}
    <tr>
        <td><input prizeId="{{value.id}}" tId="{{value.tId}}" type="checkbox" name="checked" lay-skin="primary" lay-filter="choose"/></td>
        <td style="display:none">{{value.pId}}</td>
                <td style="display:none">{{value.id}}</td>
                <td>{{value.title}}</td>    
                <td>{{value.pType}}</td>    
                <td>{{value.covertCode}}</td>    
                <td>{{value.winners}}</td>    
                <td>{{value.mode}}</td>    
                <td>{{value.direction}}</td>    
                <td>{{value.createTime}}</td>    
                <td>{{value.updateTime}}</td>    
                <td>{{value.publishTime}}</td>    
                <td>{{value.deadlineTime}}</td>    
                <td>{{value.createPerson}}</td>    
                <td>
            <a class="layui-btn layui-btn-mini prize_edit"><i class="iconfont icon-edit"></i>编辑</a>
            <a class="layui-btn layui-btn-danger layui-btn-mini prize_del"><i class="layui-icon">&#xe640;</i>删除</a>
        </td>
    </tr>
    {{/each}}
    {{else}}
    <tr style="text-align: center;"><td colspan="13">暂无数据</td></tr>
    {{/if}}
</script>


<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/js/prize/prizeList.js}"></script>
<script type="text/javascript" th:src="@{/js/common/template.js}"></script>


</body>
</html>